﻿<%@ Page Title="" Language="C#" MasterPageFile="../Share/Default.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Role_Default" %>

<%@ Register Src="../Control/RoleMenu.ascx" TagName="RoleMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" SkinID="gvList">
        <Columns>
            <asp:BoundField DataField="RoleName" HeaderText="角色名称" />
            <%--<asp:BoundField DataField="ParentRoleId" HeaderText="所属角色" />--%>
            <asp:BoundField DataField="RoleDescription" HeaderText="角色描述" />
            <asp:HyperLinkField DataNavigateUrlFields="RoleId" DataNavigateUrlFormatString="Action.aspx?roleid={0}"
                HeaderText="Action权限" Text="编辑" />
            <asp:HyperLinkField DataNavigateUrlFields="RoleId" DataNavigateUrlFormatString="Field.aspx?roleid={0}"
                HeaderText="Field权限" Text="编辑" />
            <asp:HyperLinkField DataNavigateUrlFields="RoleId" DataNavigateUrlFormatString="PowerDetail.aspx?roleid={0}"
                HeaderText="查看用户权限" Text="查看用户权限" />
            <asp:TemplateField>
                <HeaderTemplate>
                    删除角色</HeaderTemplate>
                <ItemTemplate>
                    <a href="Delete.aspx?roleid=<%#Eval("roleid") %>" onclick="return confirm('确定艺术角色:<%#Eval("RoleName") %>')">
                        删除角色</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
